<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-planItem-edit" th:object="${planItemNew}">
        <input id="iD" name="iD" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">执行时间：</label>
            <div class="col-sm-8">
                <li class="select-time">
                    <input type="text" th:value="${#dates.format(planItemNew.planTime, 'yyyy-MM-dd HH:mm:ss')}" class="time-input" id="planTime" name="planTime" placeholder="执行时间" th/>
                </li>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script th:src="@{/ajax/libs/select/select2.js}"></script>
<script type="text/javascript">
    var prefix = ctx + "system/planItemNew"
    $("#form-planItem-edit").validate({
        rules: {
            xxxx: {
                required: true,
            },
        }
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-planItem-edit').serialize());
        }
    }
</script>
</body>
</html>
